package main

import (
	"fmt"
	"os"
	"path/filepath"
)

func main() {
	dir, _ := os.UserHomeDir()
	fmt.Println(dir)
	base := filepath.Base(dir)
	fmt.Println(base)
}
